package com.cdc.baserecyclerviewadapterhelper.entity;

import com.chad.library.adapter.base.entity.JSectionEntity;


public class HomeEntity extends JSectionEntity {
    private String name;
    private Class<?> activity;
    private int imageResource;
    private String headerTitle;

    public HomeEntity() {

    }

    public HomeEntity(String headerTitle) {
        this.headerTitle = headerTitle;
    }


    public HomeEntity(String name,Class<?> activity,int imageResource) {
        this.name = name;
        this.activity = activity;
        this.imageResource = imageResource;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class<?> getActivity() {
        return activity;
    }

    public void setActivity(Class<?> activity) {
        this.activity = activity;
    }

    public int getImageResource() {
        return imageResource;
    }

    public void setImageResource(int imageResource) {
        this.imageResource = imageResource;
    }

    public String getHeaderTitle() {
        return headerTitle;
    }

    public void setHeaderTitle(String headerTitle) {
        this.headerTitle = headerTitle;
    }

    @Override
    public boolean isHeader() {
        return headerTitle != null && headerTitle.length() > 0 && headerTitle.trim().length() > 0;
    }


}

//https://blog.csdn.net/bobby_fu/article/details/82855505

//kotlin isNotEmpty 和isNotBlank的区别【java字符串判空】
